unit ufrmcadfuncionario;

{$mode objfpc}{$H+}

interface

uses
  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ExtCtrls,
  Buttons, ActnList, StdCtrls, DbCtrls, DBGrids, ufrmcadpadrao, db;

type

  { TFrmCadFuncionario }

  TFrmCadFuncionario = class(TFrmCadPadrao)
    dbcbAtivo: TDBCheckBox;
    dbcbTipo: TDBComboBox;
    dbeNumero: TDBEdit;
    dbeID: TDBEdit;
    dbeNome: TDBEdit;
    dbeTelefone1: TDBEdit;
    dbeTelefone2: TDBEdit;
    dbeEndereco: TDBEdit;
    dblcbBairro: TDBLookupComboBox;
    dblcbSetor: TDBLookupComboBox;
    Label1: TLabel;
    Label2: TLabel;
    Label3: TLabel;
    Label4: TLabel;
    Label5: TLabel;
    Label6: TLabel;
    Label7: TLabel;
    procedure AInserirExecute(Sender: TObject);
  private
    { private declarations }
  public
    { public declarations }
  end;

var
  FrmCadFuncionario: TFrmCadFuncionario;

implementation

uses uFuncoes;

{$R *.lfm}

{ TFrmCadFuncionario }

procedure TFrmCadFuncionario.AInserirExecute(Sender: TObject);
begin
  inherited;
  DS1.DataSet.FieldByName('ID').AsInteger:= TFuncoes.ObterGenerator('FUNCIONARIO');
end;

end.

